package xworker.gluon.glisten.control;

import com.gluonhq.charm.glisten.control.TextArea;
import org.xmeta.ActionContext;
import org.xmeta.Thing;

public class TextAreaActions {
    public static TextArea create(ActionContext actionContext){
        Thing self = actionContext.getObject("self");

        TextArea node = new TextArea();
        TextInputActions.init(node, self, actionContext);

        actionContext.peek().put("parent", node);
        for(Thing child : self.getChilds()){
            child.doAction("create", actionContext);
        }

        actionContext.g().put(self.getMetadata().getName(), node);
        return node;
    }
}
